
// 引入mongoose接口 （mongoose驱动）
const mongoose = require("mongoose");
mongoose.connect(
    // 数据库地址
    "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/heshumiao",
    {
        useNewUrlParser: true,
        useUnifiedTopology: true,
        auth: { authSource: "admin" }
    },
    () => {
        console.log(" connect ")
        //引入影院数据
        require("./model/cinemas")
        require("./model/projectionHall")
        require("./model/schedules")
        // 引入电影数据
        require("./model/movies");
        require("./model/admins");
        require("./model/users");
        require("./model/seats");
        require("./model/seatings");
        require("./model/indent");
    }
);
